import request2 from '@/utils/request2'
import { safetyApiUrl } from '../../config'


export default {
  // 行为安全之星排名列表搜索
  findBusListByMain(data, params) {
    return request2({
      url: safetyApiUrl + '/behavior-star/findBusListByMain', method: 'post', params, data
    })
  },
  // 行为安全之星查看详情
  findBusById(data, params) {
    return request2({
      url: safetyApiUrl + '/behavior-star/findBusById/' + params.id, method: 'get', params, data
    })
  },
  // 行为安全之星详情删除
  deleteByID(params) {
    return request2({
      url: safetyApiUrl + '/behavior-star/deleteByID/' + params.id, method: 'get', params
    })
  },
  // 行为安全之星统计
  countTotal(data, params) {
    return request2({
      url: safetyApiUrl + '/behavior-star/countTotal', method: 'post', params, data
    })
  }
}
